<?php

    define('CON_PATH','protected/Controller/');
    define('VIEW_PATH','protected/view/');
    define('LIB_PATH','protected/lib/');

    $c = empty($_GET['c'])?'index':$_GET['c'];
    //echo $c;
    $a = empty($_GET['a'])?'index':$_GET['a'];
    //echo $a;die;

    include (LIB_PATH.'init.php');

    include (LIB_PATH.'cate_fun.php');

    include (LIB_PATH.'thumb.php');

    include (CON_PATH.'admin/'.$c.'/'.$a.'.php');

    if ($a != 'login' && $a != 'sign-up') {
        include (VIEW_PATH.'/admin/layout.html');
    };

?>